package org.endy.leisure.diaTracker.config

import io.swagger.v3.oas.models.OpenAPI
import io.swagger.v3.oas.models.info.Contact
import io.swagger.v3.oas.models.info.Info
import org.springframework.context.annotation.Bean
import org.springframework.context.annotation.Configuration

@Configuration
class OpenApiConfig {
    @Bean
    fun customOpenAPI(): OpenAPI {
        return OpenAPI().info(
            Info()
                .title("API文档")
                .version("v1.0")
                .description("小程序 接口文档")
                .contact(
                    Contact().name("技术支持").email("endy0527@126.com")
                )
        )
    }
}